
// 引入 mockjs
// import axios from "axios"
import Mock from "mockjs"

// 引入轮播图数据
import bannerList from "./bannerList.json"

// 引入楼层数据
import floorList from "./floorsList.json"

// 创建 mock 服务器
Mock.mock("/mock/bannerList", { code: 200, data: bannerList })
Mock.mock("/mock/floorList", { code: 200, data: floorList })

// // 实验   页面控制台不显示
// axios.get("/mock/bannerList").then(
//   result => console.log(result),
//   error => console.log(error)
// )